Masteriyo\RestApi\Controllers\Version1\CoursesController C

Total Complexity 110
Dependencies 12
Dependents 2
Total lines 1,380
Lines of code 947
Logical lines of code 211
Comment lines 302
Methods 20
Properties 6

Methods 20

Method Rating Maintainability Complexity Lines of code
prepare_object_for_database()
D
27
45 118
get_item_schema()
B
23
1 324
prepare_objects_query()
A
43 9 52
get_course_data()
A
39 7 60
register_routes()
A
34 1 139
get_item_permissions_check()
A
47 7 40
update_enrollments_status()
S
56 5 19
save_taxonomy_terms()
S
62 5 11
get_object()
S
57 4 16
description_data()
S
63 5 10
restore_item()
S
57 4 14
get_collection_params()
S
44 1 52
update_enrollments_status_for_courses_deletion()
S
59 3 17
validate_featured_image()
S
63 4 10
prepare_links()
S
54 2 21
get_taxonomy_terms()
S
59 2 15
prepare_object_for_response()
S
63 2 9
process_objects_collection()
S
62 1 12
get_courses_count()
S
74 1 4
__construct()
S
74 1 4